lib/repo: Add min-free-space-percent option, default 3%
authorColin Walters <walters@verbum.org>
Thu, 29 Jun 2017 20:51:56 +0000 (16:51 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 4 Jul 2017 16:15:11 +0000 (16:15 +0000)
commit1f5ce1a9f789d9c0de5d6fbdf79540bf71c5bc9b
tree809f4c98af8173e86a429fac16f94aa7414e142d
parent8d4d638e99aff8a4a0abfe08f91284a6adbf9dc2
lib/repo: Add min-free-space-percent option, default 3%

For ostree-as-host, we're the superuser, so we'll blow past
any reserved free space by default.  While deltas have size
metadata, if one happens to do a loose fetch, we can fill
up the disk.

Another case is flatpak: the system helper has similar concerns
here as ostree-as-host, and for `flatpak --user`, we also
want to be nice and avoid filling up the user's quota.

Closes: https://github.com/ostreedev/ostree/issues/962
Closes: #987
Approved by: jlebon
man/ostree.repo-config.xml
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
tests/installed/itest-pull-space.sh [new file with mode: 0755]